3.126 \(\int \frac{c+d x+e x^2}{a+b x^4} \, dx\)

Optimal. Leaf size=277 \[ -\frac{\left (\sqrt{b} c-\sqrt{a} e\right ) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{b} c-\sqrt{a} e\right ) \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}-\frac{\left (\sqrt{a} e+\sqrt{b} c\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{a} e+\sqrt{b} c\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}+\frac{d \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} \sqrt{b}} \]

[Out]

(d*ArcTan[(Sqrt[b]*x^2)/Sqrt[a]])/(2*Sqrt[a]*Sqrt[b]) - ((Sqrt[b]*c + Sqrt[a]*e)
*ArcTan[1 - (Sqrt[2]*b^(1/4)*x)/a^(1/4)])/(2*Sqrt[2]*a^(3/4)*b^(3/4)) + ((Sqrt[b
]*c + Sqrt[a]*e)*ArcTan[1 + (Sqrt[2]*b^(1/4)*x)/a^(1/4)])/(2*Sqrt[2]*a^(3/4)*b^(
3/4)) - ((Sqrt[b]*c - Sqrt[a]*e)*Log[Sqrt[a] - Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[
b]*x^2])/(4*Sqrt[2]*a^(3/4)*b^(3/4)) + ((Sqrt[b]*c - Sqrt[a]*e)*Log[Sqrt[a] + Sq
rt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2])/(4*Sqrt[2]*a^(3/4)*b^(3/4))

_______________________________________________________________________________________

Rubi [A]  time = 0.441168, antiderivative size = 277, normalized size of antiderivative = 1., number of steps used = 13, number of rules used = 9, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.45 \[ -\frac{\left (\sqrt{b} c-\sqrt{a} e\right ) \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{b} c-\sqrt{a} e\right ) \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{3/4}}-\frac{\left (\sqrt{a} e+\sqrt{b} c\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}+\frac{\left (\sqrt{a} e+\sqrt{b} c\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{2 \sqrt{2} a^{3/4} b^{3/4}}+\frac{d \tan ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{2 \sqrt{a} \sqrt{b}} \]

Antiderivative was successfully verified.

[In]  Int[(c + d*x + e*x^2)/(a + b*x^4),x]

[Out]

(d*ArcTan[(Sqrt[b]*x^2)/Sqrt[a]])/(2*Sqrt[a]*Sqrt[b]) - ((Sqrt[b]*c + Sqrt[a]*e)
*ArcTan[1 - (Sqrt[2]*b^(1/4)*x)/a^(1/4)])/(2*Sqrt[2]*a^(3/4)*b^(3/4)) + ((Sqrt[b
]*c + Sqrt[a]*e)*ArcTan[1 + (Sqrt[2]*b^(1/4)*x)/a^(1/4)])/(2*Sqrt[2]*a^(3/4)*b^(
3/4)) - ((Sqrt[b]*c - Sqrt[a]*e)*Log[Sqrt[a] - Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[
b]*x^2])/(4*Sqrt[2]*a^(3/4)*b^(3/4)) + ((Sqrt[b]*c - Sqrt[a]*e)*Log[Sqrt[a] + Sq
rt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2])/(4*Sqrt[2]*a^(3/4)*b^(3/4))

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 70.4338, size = 258, normalized size = 0.93 \[ \frac{d \operatorname{atan}{\left (\frac{\sqrt{b} x^{2}}{\sqrt{a}} \right )}}{2 \sqrt{a} \sqrt{b}} + \frac{\sqrt{2} \left (\sqrt{a} e - \sqrt{b} c\right ) \log{\left (- \sqrt{2} \sqrt [4]{a} b^{\frac{3}{4}} x + \sqrt{a} \sqrt{b} + b x^{2} \right )}}{8 a^{\frac{3}{4}} b^{\frac{3}{4}}} - \frac{\sqrt{2} \left (\sqrt{a} e - \sqrt{b} c\right ) \log{\left (\sqrt{2} \sqrt [4]{a} b^{\frac{3}{4}} x + \sqrt{a} \sqrt{b} + b x^{2} \right )}}{8 a^{\frac{3}{4}} b^{\frac{3}{4}}} - \frac{\sqrt{2} \left (\sqrt{a} e + \sqrt{b} c\right ) \operatorname{atan}{\left (1 - \frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}} \right )}}{4 a^{\frac{3}{4}} b^{\frac{3}{4}}} + \frac{\sqrt{2} \left (\sqrt{a} e + \sqrt{b} c\right ) \operatorname{atan}{\left (1 + \frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}} \right )}}{4 a^{\frac{3}{4}} b^{\frac{3}{4}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((e*x**2+d*x+c)/(b*x**4+a),x)

[Out]

d*atan(sqrt(b)*x**2/sqrt(a))/(2*sqrt(a)*sqrt(b)) + sqrt(2)*(sqrt(a)*e - sqrt(b)*
c)*log(-sqrt(2)*a**(1/4)*b**(3/4)*x + sqrt(a)*sqrt(b) + b*x**2)/(8*a**(3/4)*b**(
3/4)) - sqrt(2)*(sqrt(a)*e - sqrt(b)*c)*log(sqrt(2)*a**(1/4)*b**(3/4)*x + sqrt(a
)*sqrt(b) + b*x**2)/(8*a**(3/4)*b**(3/4)) - sqrt(2)*(sqrt(a)*e + sqrt(b)*c)*atan
(1 - sqrt(2)*b**(1/4)*x/a**(1/4))/(4*a**(3/4)*b**(3/4)) + sqrt(2)*(sqrt(a)*e + s
qrt(b)*c)*atan(1 + sqrt(2)*b**(1/4)*x/a**(1/4))/(4*a**(3/4)*b**(3/4))

_______________________________________________________________________________________

Mathematica [A]  time = 0.278707, size = 229, normalized size = 0.83 \[ \frac{-2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (2 \sqrt [4]{a} \sqrt [4]{b} d+\sqrt{2} \sqrt{a} e+\sqrt{2} \sqrt{b} c\right )+2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right ) \left (-2 \sqrt [4]{a} \sqrt [4]{b} d+\sqrt{2} \sqrt{a} e+\sqrt{2} \sqrt{b} c\right )-\sqrt{2} \left (\sqrt{b} c-\sqrt{a} e\right ) \left (\log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )-\log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )\right )}{8 a^{3/4} b^{3/4}} \]

Antiderivative was successfully verified.

[In]  Integrate[(c + d*x + e*x^2)/(a + b*x^4),x]

[Out]

(-2*(Sqrt[2]*Sqrt[b]*c + 2*a^(1/4)*b^(1/4)*d + Sqrt[2]*Sqrt[a]*e)*ArcTan[1 - (Sq
rt[2]*b^(1/4)*x)/a^(1/4)] + 2*(Sqrt[2]*Sqrt[b]*c - 2*a^(1/4)*b^(1/4)*d + Sqrt[2]
*Sqrt[a]*e)*ArcTan[1 + (Sqrt[2]*b^(1/4)*x)/a^(1/4)] - Sqrt[2]*(Sqrt[b]*c - Sqrt[
a]*e)*(Log[Sqrt[a] - Sqrt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2] - Log[Sqrt[a] + Sq
rt[2]*a^(1/4)*b^(1/4)*x + Sqrt[b]*x^2]))/(8*a^(3/4)*b^(3/4))

_______________________________________________________________________________________

Maple [A]  time = 0.005, size = 280, normalized size = 1. \[{\frac{c\sqrt{2}}{8\,a}\sqrt [4]{{\frac{a}{b}}}\ln \left ({1 \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{c\sqrt{2}}{4\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ) }+{\frac{c\sqrt{2}}{4\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ) }+{\frac{d}{2}\arctan \left ({x}^{2}\sqrt{{\frac{b}{a}}} \right ){\frac{1}{\sqrt{ab}}}}+{\frac{e\sqrt{2}}{8\,b}\ln \left ({1 \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{e\sqrt{2}}{4\,b}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{e\sqrt{2}}{4\,b}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((e*x^2+d*x+c)/(b*x^4+a),x)

[Out]

1/8*c*(a/b)^(1/4)/a*2^(1/2)*ln((x^2+(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2))/(x^2-(a/b
)^(1/4)*x*2^(1/2)+(a/b)^(1/2)))+1/4*c*(a/b)^(1/4)/a*2^(1/2)*arctan(2^(1/2)/(a/b)
^(1/4)*x+1)+1/4*c*(a/b)^(1/4)/a*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x-1)+1/2*d/(a
*b)^(1/2)*arctan(x^2*(b/a)^(1/2))+1/8*e/b/(a/b)^(1/4)*2^(1/2)*ln((x^2-(a/b)^(1/4
)*x*2^(1/2)+(a/b)^(1/2))/(x^2+(a/b)^(1/4)*x*2^(1/2)+(a/b)^(1/2)))+1/4*e/b/(a/b)^
(1/4)*2^(1/2)*arctan(2^(1/2)/(a/b)^(1/4)*x+1)+1/4*e/b/(a/b)^(1/4)*2^(1/2)*arctan
(2^(1/2)/(a/b)^(1/4)*x-1)

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x^2 + d*x + c)/(b*x^4 + a),x, algorithm="maxima")

[Out]

Exception raised: ValueError

_______________________________________________________________________________________

Fricas [F(-2)]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: NotImplementedError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x^2 + d*x + c)/(b*x^4 + a),x, algorithm="fricas")

[Out]

Exception raised: NotImplementedError

_______________________________________________________________________________________

Sympy [A]  time = 10.4491, size = 466, normalized size = 1.68 \[ \operatorname{RootSum}{\left (256 t^{4} a^{3} b^{3} + t^{2} \left (64 a^{2} b^{2} c e + 32 a^{2} b^{2} d^{2}\right ) + t \left (16 a^{2} b d e^{2} - 16 a b^{2} c^{2} d\right ) + a^{2} e^{4} + 2 a b c^{2} e^{2} - 4 a b c d^{2} e + a b d^{4} + b^{2} c^{4}, \left ( t \mapsto t \log{\left (x + \frac{64 t^{3} a^{4} b^{2} e^{3} - 64 t^{3} a^{3} b^{3} c^{2} e + 128 t^{3} a^{3} b^{3} c d^{2} + 48 t^{2} a^{3} b^{2} c d e^{2} - 32 t^{2} a^{3} b^{2} d^{3} e + 16 t^{2} a^{2} b^{3} c^{3} d + 12 t a^{3} b c e^{4} + 12 t a^{3} b d^{2} e^{3} - 16 t a^{2} b^{2} c^{3} e^{2} + 36 t a^{2} b^{2} c^{2} d^{2} e + 8 t a^{2} b^{2} c d^{4} + 4 t a b^{3} c^{5} + 3 a^{3} d e^{5} + 5 a^{2} b c d^{3} e^{2} - 2 a^{2} b d^{5} e + 5 a b^{2} c^{4} d e - 5 a b^{2} c^{3} d^{3}}{a^{3} e^{6} - a^{2} b c^{2} e^{4} + 8 a^{2} b c d^{2} e^{3} - 4 a^{2} b d^{4} e^{2} - a b^{2} c^{4} e^{2} + 8 a b^{2} c^{3} d^{2} e - 4 a b^{2} c^{2} d^{4} + b^{3} c^{6}} \right )} \right )\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x**2+d*x+c)/(b*x**4+a),x)

[Out]

RootSum(256*_t**4*a**3*b**3 + _t**2*(64*a**2*b**2*c*e + 32*a**2*b**2*d**2) + _t*
(16*a**2*b*d*e**2 - 16*a*b**2*c**2*d) + a**2*e**4 + 2*a*b*c**2*e**2 - 4*a*b*c*d*
*2*e + a*b*d**4 + b**2*c**4, Lambda(_t, _t*log(x + (64*_t**3*a**4*b**2*e**3 - 64
*_t**3*a**3*b**3*c**2*e + 128*_t**3*a**3*b**3*c*d**2 + 48*_t**2*a**3*b**2*c*d*e*
*2 - 32*_t**2*a**3*b**2*d**3*e + 16*_t**2*a**2*b**3*c**3*d + 12*_t*a**3*b*c*e**4
 + 12*_t*a**3*b*d**2*e**3 - 16*_t*a**2*b**2*c**3*e**2 + 36*_t*a**2*b**2*c**2*d**
2*e + 8*_t*a**2*b**2*c*d**4 + 4*_t*a*b**3*c**5 + 3*a**3*d*e**5 + 5*a**2*b*c*d**3
*e**2 - 2*a**2*b*d**5*e + 5*a*b**2*c**4*d*e - 5*a*b**2*c**3*d**3)/(a**3*e**6 - a
**2*b*c**2*e**4 + 8*a**2*b*c*d**2*e**3 - 4*a**2*b*d**4*e**2 - a*b**2*c**4*e**2 +
 8*a*b**2*c**3*d**2*e - 4*a*b**2*c**2*d**4 + b**3*c**6))))

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.220282, size = 371, normalized size = 1.34 \[ -\frac{\sqrt{2}{\left (\sqrt{2} \sqrt{a b} b^{2} d - \left (a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (a b^{3}\right )^{\frac{3}{4}} e\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x + \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{3}} - \frac{\sqrt{2}{\left (\sqrt{2} \sqrt{a b} b^{2} d - \left (a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (a b^{3}\right )^{\frac{3}{4}} e\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x - \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{3}} + \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (a b^{3}\right )^{\frac{3}{4}} e\right )}{\rm ln}\left (x^{2} + \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{8 \, a b^{3}} - \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (a b^{3}\right )^{\frac{3}{4}} e\right )}{\rm ln}\left (x^{2} - \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{8 \, a b^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x^2 + d*x + c)/(b*x^4 + a),x, algorithm="giac")

[Out]

-1/4*sqrt(2)*(sqrt(2)*sqrt(a*b)*b^2*d - (a*b^3)^(1/4)*b^2*c - (a*b^3)^(3/4)*e)*a
rctan(1/2*sqrt(2)*(2*x + sqrt(2)*(a/b)^(1/4))/(a/b)^(1/4))/(a*b^3) - 1/4*sqrt(2)
*(sqrt(2)*sqrt(a*b)*b^2*d - (a*b^3)^(1/4)*b^2*c - (a*b^3)^(3/4)*e)*arctan(1/2*sq
rt(2)*(2*x - sqrt(2)*(a/b)^(1/4))/(a/b)^(1/4))/(a*b^3) + 1/8*sqrt(2)*((a*b^3)^(1
/4)*b^2*c - (a*b^3)^(3/4)*e)*ln(x^2 + sqrt(2)*x*(a/b)^(1/4) + sqrt(a/b))/(a*b^3)
 - 1/8*sqrt(2)*((a*b^3)^(1/4)*b^2*c - (a*b^3)^(3/4)*e)*ln(x^2 - sqrt(2)*x*(a/b)^
(1/4) + sqrt(a/b))/(a*b^3)